import request from '@/utils/request'

// 查询国家列表
export function listType(query) {
  return request({
    url: '/business/countryType/list',
    method: 'get',
    params: query
  })
}

export function alllistcountryTypeType(query) {
  return request({
    url: '/business/countryType/alllist',
    method: 'get',
    params: query
  })
}



// 查询国家详细
export function getType(id) {
  return request({
    url: '/business/countryType/' + id,
    method: 'get'
  })
}

// 新增国家
export function addType(data) {
  return request({
    url: '/business/countryType',
    method: 'post',
    data: data
  })
}

// 修改国家
export function updateType(data) {
  return request({
    url: '/business/countryType',
    method: 'put',
    data: data
  })
}

// 删除国家
export function delType(id) {
  return request({
    url: '/business/countryType/' + id,
    method: 'delete'
  })
}
